import assessCheckApi from './api'
import { axios } from '@/utils/request'

// 流程模板表-分页列表查询
export function list(params){
  return axios({
    url: assessCheckApi.list,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 流程模板表-通过id删除
export function deletePage(params){
  return axios({
    url: assessCheckApi.deletePage,
    method:'delete',
    params:{...params},
    url_2:'outside',
  })
}
// 流程模板表-批量删除
export function deleteBatch(params){
  return axios({
    url: assessCheckApi.deleteBatch,
    method:'delete',
    params:{...params},
    url_2:'outside',
  })
}
// 流程模板表-添加
export function addPage(data){
  return axios({
    url: assessCheckApi.addPage,
    method:'post',
    data:data,
    url_2:'outside',
  })
}
// 流程模板表-编辑
export function edit(data){
  return axios({
    url: assessCheckApi.edit,
    method:'put',
    data:{...data},
    url_2:'outside',
  })
}
//---------------
// 流程节点-分页列表查询
export function jdList(params){
  return axios({
    url: assessCheckApi.jdList,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 流程节点-添加第一个节点
export function addfirstnode(params){
  return axios({
    url: assessCheckApi.addfirstnode,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 流程节点-添加
export function add(data){
  return axios({
    url: assessCheckApi.add,
    method:'post',
    data:data,
    url_2:'outside',
  })
}
// 流程节点-通过id删除
export function deleteJd(params){
  return axios({
    url: assessCheckApi.deleteJd,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 流程节点-编辑
export function editJd(data){
  return axios({
    url: assessCheckApi.editJd,
    method:'put',
    data:{...data},
    url_2:'outside',
  })
}
//------------
// 查询当前所有部门
export function getDepart(params){
  return axios({
    url: assessCheckApi.getDepart,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 查询当前所有岗位
export function getJob(params){
  return axios({
    url: assessCheckApi.getJob,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
// 查询所有的中心职员
export function getZxzy(params){
  return axios({
    url: assessCheckApi.getZxzy,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
//--------
// 流程列表-分页查询
export function pageList(params){
  return axios({
    url: assessCheckApi.pageList,
    method:'get',
    params:{...params},
    url_2:'outside',
  })
}
